﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Admin_logout : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        HttpCookie cookie = Request.Cookies["darrenbo"];
        if (cookie != null)
        {           
            TimeSpan ts = new TimeSpan(-1, 0, 0, 0);
            cookie.Expires = DateTime.Now.Add(ts);//删除整个Cookie，只要把过期时间设置为现在
            Response.AppendCookie(cookie);
            Response.Redirect("login.aspx");
        }
    }
}